# coding=utf8
import threading

from friendship_assistant import youcoffee
from support_services.except_back import ExceptBack
from tools.logger import Logger


def main():
    name = "pycrawler_service"

    logger = Logger(name)

    except_back = ExceptBack(name + "_redis_maintain")

    # 代理池
    threading.Thread(target=youcoffee.SignIn(error_back=except_back).run, args=(logger, )).start()


if __name__ == "__main__":
    main()
